﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_goodsclassMetadata))]//使用ts_goodsclassMetadata对ts_goodsclass进行数据验证
    public partial class ts_goodsclass : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class ts_goodsclassMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "物品类别", Order = 2)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_class { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "所属大类", Order = 3)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_class1 { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "属原料", Order = 4)]
			[Range(0,2147483646, ErrorMessage="数值超出范围")]
			public int? i_m { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "序号", Order = 5)]
			[StringLength(2, ErrorMessage = "长度不可超过2")]
			public object c_id { get; set; }


    }


}

